﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace prototype123
{
    public partial class main_form : Form
    {
        public main_form()
        {
            InitializeComponent();
            this.Visible = false;
        }

        private void endTermToolStripMenuItem_Click(object sender, EventArgs e)
        {
            end_term frm = new end_term();
            frm.Show();
        }

        //add new assignment to student assignment list
        private void btnAddAssignment_Click(object sender, EventArgs e)
        {
            //verify that name, points earned, points possible, and category are all filled in

            //maintainAssignments.AddAssignment(txtName, txtPtsEarned, txtPtsPossible, txtCat)
        }

        //edits an assignment that is currently in the student assign list
        private void btnUpdateAssignment_Click(object sender, EventArgs e)
        {
            //pre-requires: user has selected an assignment and (most likely) changed some of the text boxes

            //verify that name, points earned, points possible, and category are all filled in

            //maintainAssignments.UpdateAssignment(txtName, txtPtsEarned, txtPtsPossible, txtCat)
        }

        //deletes an assignment that is currently in the student assign list
        private void btnDeleteAssignment_Click(object sender, EventArgs e)
        {
            //pre-requires: the user has selected an assignment from the datagrid assignment list

            //maintainAssignments.DeleteAssignment(assignmentID)
        }

        //adds a new category to the database
        private void btnAddCategory_Click(object sender, EventArgs e)
        {
            //verify that category name and category weight have been filled in

            //maintainCategory.AddCategory(txtCatName, txtCatWeight)
        }

        //deletes a category from the database
        private void btnDeleteCategory_Click(object sender, EventArgs e)
        {
            //verify that a category has been selected from listCategories

            //maintainCategory.DeleteCategory(CatID)
        }

        //adds a course to the database
        private void btnAddCourse_Click(object sender, EventArgs e)
        {
            //verify that the course name, teacher type, and textbook have all been entered

            //maintainCourseReg.AddCourse(txtName, txtTeacher, txtTextbook)
        }

        //edit a course that is currently in the database
        private void btnUpdateCourse_Click(object sender, EventArgs e)
        {
            //verify that a course has been selected from listCourses

            //verify that the course name, teacher type, and textbook have all been entered

            //maintainCourseReg.UpdateCourse(txtName, txtTeacher, txtTextbook)
        }

        //delete a course that is currently in the database
        private void btnDeleteCourse_Click(object sender, EventArgs e)
        {
            //verify that a course has been selected from listCourses

            //maintainCourseReg.DeleteCourse(CourseID)
        }


        //exit the application
        private void menuQuit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }




        //-----------------------------------------------------------
        //-----------------------------------------------------------

        //BELOW THIS IS OLD PROTOTYPE CODE TEMPORARILY KEPT JUST IN CASE. 
        //FOR THE LOVE OF HAPPINESS, DELETE IT ALL LATER. MUCHOS GRACIAS

        /* private void StudentMenuItem_Click(object sender, EventArgs e)
        {
            //sender = sender.ToString() + " √";
            //this.toolStripCurrentStudent.Text = "Current Student: " + sender.ToString();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            //lblCourseName.Text = listBox1.SelectedItem.ToString() + " Assignments:";
        }*/

        /* private void button2_Click(object sender, EventArgs e)
         {
             // Configure the message box to be displayed
             //string messageBoxText = "Do you want to delete this assignment?";
             //string caption = "Delete Assignment";
             //MessageBoxButtons button1 = MessageBoxButtons.YesNo;
             //MessageBoxIcon icon = MessageBoxIcon.Warning;
             //MessageBox.Show(messageBoxText, caption, button1, icon);
         }

         private void addCourseToolStripMenuItem_Click(object sender, EventArgs e)
         {

         }

         private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
         {

         }

         private void button5_Click(object sender, EventArgs e)
         {
             // Configure the message box to be displayed
             string messageBoxText = "Do you want to delete this course along with all its assignments?";
             string caption = "Delete Course";
             MessageBoxButtons button1 = MessageBoxButtons.YesNo;
             MessageBoxIcon icon = MessageBoxIcon.Warning;
             MessageBox.Show(messageBoxText, caption, button1, icon);
         }

         private void button10_Click(object sender, EventArgs e)
         {
           //  panel4.Visible = true;


             //button10.Enabled = false;
            // button9.Enabled = true;
 //panel5.Visible = false;

            // panel4.Left = 12;
             //panel4.Top = 3;
             //panel5.Left = 12;
             //panel5.Top = 3;
         }

         private void button9_Click(object sender, EventArgs e)
         {
            // panel5.Visible = true;
          //   button9.Enabled = false;
           //  button10.Enabled = true;
           //  panel4.Visible = false;


            // panel4.Left = 12;
           //  panel4.Top = 3;
            // panel5.Left = 12;
            // panel5.Top = 3;
         }

         private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
         {
             //comboBox3_SelectedIndexChanged
            // lblCourseName.Text = comboBox3.SelectedItem.ToString() + " Assignments:";
            
                
         }*/


    }
}
